'''
坐标图的展示

'''
import pandas as pd
import matplotlib.pyplot as plt

#创建数据框
rocks=pd.DataFrame([[1,200,105,3,False],[2,165,80,2,False],[3,184.5,120,2,False],[4,116,70.8,1,False],[5,270,150,4,True]])
# print(rocks)
#切割第一行和第二行前三列的数
datarow1=rocks.iloc[1,0:3]
datarow2=rocks.iloc[2,0:3]
plt.scatter(datarow1,datarow2)
plt.ylabel(("attribute2"))
plt.xlabel("attribute1")
plt.show()
